package com.hangxintong.common.feign.feignImpl;

import com.hangxintong.common.base.entity.LmUser;
import com.hangxintong.common.feign.MessageNacosFeign;
import com.hangxintong.common.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Lenovo
 */
@Slf4j
@Component
public class MessageNacosFeignImpl  implements MessageNacosFeign {
    @Override
    public Result hello(Integer userId) {
        return Result.msg("hello熔断器");
    }



    @Override
    public Result editReadStatus(Long logId, Long memberId, String userName) {
        return Result.msg("editReadStatus------催费信息熔断器");
    }

    @Override
    public Result saveUserMember(LmUser user) {
        log.error("--------->saveUserMember{}",user);
        return Result.msg("saveUserMember-----登录插入会员单位信息熔断器");
    }

    @Override
    public Result SendSms(String phone, Integer forget, Integer status) {
        log.error("--------->SendSms{}",phone);
        return Result.msg("saveUserMember-----短信熔断器");
    }

    @Override
    public Result SendMailCode(String email) {
        log.error("--------->SendMailCode{}",email);
        return Result.msg("saveUserMember-----邮件熔断器");
    }
}